<%-- 
    Document   : IssueHallTicket
    Created on : Nov 17, 2013, 5:25:13 PM
    Author     : smarzoug
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
   <%
   try{
    RegistrationDAO regdao = new RegistrationDAO();
    String param[] = request.getParameterValues("ch");
    int hallid = 0;
    for(int i=0;i<param.length;i++)
    {
        hallid = regdao.getHallticketID();
        regdao.issueHallticket(param[i],hallid); 
     %>
        <%= param[i]%>--<%=hallid%><br>
     <%       
    }
    }catch(Exception e)
    {
      LoggerManager.writeLogSevere(e);
    }
    %>
  </body>
</html>
